<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
    <head>
        <title>Accueil</title>
        <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
        <link rel="STYLESHEET" type="text/css" href="style/main_style.css" />
        <link rel="STYLESHEET" type="text/css" href="style/membership_style.css" />
        <script type='text/javascript' src='scripts/gen_validatorv31.js'></script>
    </head>

    <body>
    	<!-- HEADER -->
        <?php include_once './include/header.php'; ?>
        <!-- MAIN -->
	<div id="main" style="text-align: center; margin-top: 50px; margin-bottom: 50px;">
            <!-- CONTENT -->
            <form id='login' action='./handler/login_treatment.php' method='post' accept-charset='UTF-8'>
                <fieldset id='login_group'>
                    <legend>Authentification</legend>
                    <div><span class='error'><?PHP if(isset($_GET["login_error"])){
						echo 'Connexion &eacute;chou&eacute;e ! <br/>Veuillez re&eacute;ssayer.';} ?></span>
					</div>
                    <div class='field'>
                        <label for='username' >Identifiant*:</label><br/>
                        <input type='text' name='username' id='username' value='' maxlength="50" /><br/>
                        <span id='login_username_errorloc' class='error'></span>
                    </div>
                    <div class='field'>
                        <label for='password' >Mot de passe*:</label><br/>
                        <input type='password' name='password' id='password' maxlength="50" /><br/>
                        <span id='login_password_errorloc' class='error'></span>
                    </div>
                    <div class='message'>* champs obligatoires</div><br/>
                    <div class='center_field'>
                        <input type='submit' class='submit' name='submit' value='Connexion' />
                    </div>
                    <br/><div class='redirect_link'><a href='inscription.php'>S'inscrire ?</a></div>
                    <div class='redirect_link'><a href='forgotten_pwd.php'>Mot de passe oubli&eacute; ?</a></div>
                </fieldset>
            </form>
            <script type='text/javascript'>
                var frmvalidator  = new Validator("login");
                frmvalidator.EnableOnPageErrorDisplay();
                frmvalidator.EnableMsgsTogether();
                frmvalidator.addValidation("username","req","Merci de saisir votre identifiant");
                frmvalidator.addValidation("password","req","Merci de saisir le mot de passe");
            </script>
	</div>	
	<!-- FOOTER -->
	<?php include_once './include/footer.php';?>
    </body>
</html>